]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
status/system: Mark 'Power Off' menu header for translation
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 13 Sep 2022 15:18:26 +0000 (17:18 +0200)
committerMarge Bot <marge-bot@gnome.org>
Wed, 14 Sep 2022 22:01:20 +0000 (22:01 +0000)
This was missed when the menu was added as part of quick settings.

Luckily we can re-use the msg-id/context from the shutdown dialog,
so the change is not subject to the string freeze.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5862

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2484>

js/ui/status/system.js

index 05527bf1160360395e900919ce6a285d38c7a296..25d4c1e9c8ade72e386321ff7216493a66868edb 100644 (file)
@@ -164,7 +164,7 @@ class ShutdownItem extends QuickSettingsItem {
         this._systemActions = new SystemActions.getDefault();
         this._items = [];
 
-        this.menu.setHeader('system-shutdown-symbolic', 'Power Off');
+        this.menu.setHeader('system-shutdown-symbolic', C_('title', 'Power Off'));
 
         this._addSystemAction(_('Suspend'), 'can-suspend', () => {
             this._systemActions.activateSuspend();